import { useState } from 'react';
import './App.css'
import HOCComponent from "./components/HOC/HOCComponent"
import Login from './components/HOC/Login'
import Home from './components/HOC/Home'


const NewComponent = HOCComponent(Login, Home)
function App() {
  const [userInfo, setUserInfo] = useState({ username: 'wqw' })
  const [userLogin, setUserLogin] = useState(false)
  return (
    <>
      <NewComponent userInfo={userInfo} userLogin={userLogin}></NewComponent>

    </>
  );
}

export default App;

